import request from '@/utils/request'

// 查询核销记录列表
export function listVerificationRecord(query) {
  return request({
    url: '/merchant/verificationRecord/list',
    method: 'get',
    params: query
  })
}

// 查询核销记录详细
export function getVerificationRecord(id) {
  return request({
    url: '/merchant/verificationRecord/' + id,
    method: 'get'
  })
}

// 新增核销记录
export function addVerificationRecord(data) {
  return request({
    url: '/merchant/verificationRecord',
    method: 'post',
    data: data
  })
}

// 修改核销记录
export function updateVerificationRecord(data) {
  return request({
    url: '/merchant/verificationRecord',
    method: 'put',
    data: data
  })
}

// 删除核销记录
export function delVerificationRecord(id) {
  return request({
    url: '/merchant/verificationRecord/' + id,
    method: 'delete'
  })
}
